package com.zzty.springmybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzty.springmybatis.DAO.StudentDAO;
import com.zzty.springmybatis.entity.Student;
import com.zzty.springmybatis.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService {

	@Autowired
	StudentDAO studentDAO;
	public Student getStudentById(Integer id) {
		return studentDAO.getStudentById(id);
	}

}
